package com.ridu.project.beshid.service;

import com.ridu.project.beshid.api.GeneralResponse;
import com.ridu.project.beshid.api.JifenReq;
import com.ridu.project.beshid.entity.JifenReqEntity;
import com.ridu.project.beshid.entity.UserEntity;

import java.util.List;

public interface JifenReqService {

    GeneralResponse findAll(int currentPage, int pageSize, String username,String flow,String source,String type,
                            String startTime, String endTime);

    GeneralResponse saveAndFlush(JifenReq jifen, UserEntity owner, String description);

    List<JifenReqEntity> findByMobiles(String mobiles) throws Exception;

    List<JifenReqEntity> findByIds(String mobiles) throws Exception;

    GeneralResponse sent(String ids);

    GeneralResponse setExchangeRate(UserEntity user);

    GeneralResponse getJifensAuditList(int currentPage, int pageSize, String status);

    GeneralResponse getJifensAuditList(int currentPage, int pageSize, String startTime, String endTime, String username, String platform, String status);

    GeneralResponse jifenBuy(UserEntity user, String category, String jifen_num);
}
